<?php
// time how long it takes for petewiki to generate a page
function getStartTime() {
  $GLOBALS['starttime'] = time();
}
add_hook('absolute_beginning','getStartTime()');
function printTime() {
  $diff = time()-$GLOBALS['starttime'];
  echo "<!-- page generated on ".date("l, n/j/Y @ g:ia")." in $diff milliseconds -->";
}
add_hook('absolute_end','printTime()');
?>